<div style="padding:50px 60px;">
<form class="layui-form" action="{:url()}?projectId={:$_REQUEST['projectId']}" method="post" id="editForm" lay-filter="edit-form">
    <div class="pop-bottom-bar">
    	<input type="hidden" class="field-id" name="id">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit" hisi-data="{pop: true, refresh: false, callback: callbackUpdateTask}">提交保存</button>
        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary ml10">取消</a>
    </div>

    <div>
      <table width="500" border="0" align="center" cellpadding="3" cellspacing="8">
        <tr>
          <td width="83" height="50">项目成员：</td>
          <td width="401"><div id="project_users"></div></td>
        </tr>
        <tr>
          <td><span class="xm-input">审批人</span>：</td>
          <td><div id="audit_users"></div></td>
        </tr>
      </table>
    </div>
    <input type="hidden" class="field-id" name="projectId" value="{:$projectId}">
</form>
</div>
{include file="system@block/layui" /}

 
<!--2.模块化使用-->
<script src="__PUBLIC_JS__/xm-select/dist/xm-select.js"></script>
<script type="text/javascript">
    //加载模块
    layui.use(['jquery', 'formSelects','tool', 'form', 'layer'], function(){
        var formSelects = layui.formSelects;
        layui.formSelects.data('select15', 'local', {
            linkage: true
        });
        // 表单提交回调
        window.callbackUpdateTask = function(obj, res) {
          if (res.code == 1) layer.msg(res.msg, {icon: 1,end:function(){
                  parent.layui.layer.closeAll();
                  parent.location.reload();
              }
          });
        }
    });


	var demo1 = xmSelect.render({
		el: '#project_users', 
		name:'project_users',
		autoRow: true,
		filterable: true,
		data: {:json_encode($projectUsers)}
	})
	
	var demo1 = xmSelect.render({
		el: '#audit_users', 
		name:'audit_users',
		autoRow: true,
		filterable: true,
		data: {:json_encode($auditUsers)}
	})
</script>

